﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Methods;

[TestClass]
public class CasualTests
{
    [TestMethod]
    public void TestOnlyEquals()
    {
        int[] arr = { 0, 0, 0, 0, 0 };
        int n = CertainNumberRepeatedTimes.CertainNumberCounter(0, arr);
        Assert.AreEqual(5, n);
    }

    [TestMethod]
    public void TestWithoutEquals()
    {
        int[] arr = { 1, 2, 3, 4, 5 };
        int n = CertainNumberRepeatedTimes.CertainNumberCounter(0, arr);
        Assert.AreEqual(0, n);
    }

    [TestMethod]
    public void CasualTest()
    {
        int[] arr = { 2, 3, 3, 4, 2 };
        int n = CertainNumberRepeatedTimes.CertainNumberCounter(3, arr);
        Assert.AreEqual(2, n);
    }

    [TestMethod]
    public void TestNegativeNumbers()
    {
        int[] arr = { -1, -2, -2, -2, -2 };
        int n = CertainNumberRepeatedTimes.CertainNumberCounter(-2, arr);
        Assert.AreEqual(4, n);
    }
}